package com.xiaochong.tir.common.data.mapper;

import com.xiaochong.tir.common.data.mapper.base.BaseDao;
import com.xiaochong.tir.common.data.mapperSearchResult.ExchangeTransactionpair;
import com.xiaochong.tir.common.data.po.ExchangeTransactionpairMiddle;
import com.xiaochong.tir.common.data.po.TransactionPair;
import com.xiaochong.tir.common.data.vo.ApiExchangeInfoSeoVo;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Map;

/**
 * 此类为[基础代码]自动生成，继承了BaseDao类，已经拥有基本的增删改成操作
 * <其他请自行扩展>
 * @author cx
 * @time 2018-05-30 19:57
 */
public interface ExchangeTransactionpairMiddleMapper extends BaseDao<ExchangeTransactionpairMiddle,Integer> {


    //自行扩展
    List<ExchangeTransactionpairMiddle> selectByEntitys(ExchangeTransactionpairMiddle exchangeTransactionpairMiddle);

    int updateByName(ExchangeTransactionpairMiddle exchangeTransactionpairMiddle);

    List<ExchangeTransactionpairMiddle> getTransactionPairByCurrencyInfo(ExchangeTransactionpairMiddle exchangeTransactionpairMiddle);

    List<ExchangeTransactionpair> selectByEntityListOfKLine(ExchangeTransactionpairMiddle query);

    int deleteByTraId(ExchangeTransactionpairMiddle entity);

    ApiExchangeInfoSeoVo getExchangeInfoByPairName(Map<String, Object> params);



    int updateByEtmId(@Param("id") Integer id);

    int updateByPrimaryKey(ExchangeTransactionpairMiddle entity);
}